//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Query Application Block
//===============================================================================

using System.ComponentModel;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design;
using EntLibContrib.Query.Properties;

namespace EntLibContrib.Query.Configuration.Design
{
	/// <summary>
	/// Represents a node that contains a collection of <see cref="QueryNode"/> instances.
	/// </summary>
  [Image(typeof(QueryCollectionNode))]
  [SelectedImage(typeof(QueryCollectionNode))]
  public sealed class QueryCollectionNode : ConfigurationNode
	{
		#region Properties
		/// <summary>
		/// Gets or sets the name of the node.
		/// </summary>
		/// <value>
		/// The name of the node.
		/// </value>
		/// <remarks>
		/// This is overridden so it can be marked read-only in the designer.
		/// </remarks>
		[ReadOnly(true)]
		public override string Name
		{
			get { return base.Name; }
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initialize a new instance of the <see cref="QueryCollectionNode"/> class.
		/// </summary>
		public QueryCollectionNode ()
			: base(InternalResources.DefaultQueryCollectionNodeName)
    {
		}
		#endregion
  }
}